package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.Function;

public interface FunctionService {
	public void saveOrUpdateFunction(Function function) throws Exception;
	public void saveFunction(Function function) throws Exception;
	public void deleteFunction(Function function) throws Exception;
	public Function getFunctionByFunctionID(int functionID) throws Exception;
	// 查询所有菜单
	public List<Function> getAllFunction() throws Exception;
	// 查询所有父菜单，即父ID为-1和1的
	public List<Function> getAllParentFunction() throws Exception;
	// 根据父ID，查询该ID下的所有子菜单
	public List<Function> getAllFunctionByFunctionParentID(int functionParentID) throws Exception;

}
